package com.mzjf.boot.controller;

import com.mzjf.boot.common.PageVo;
import com.mzjf.boot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 测试查询数据库返回列表
 * @Author wuhongpu
 * @Date 2018-05-02 14:59
 */
@RestController
public class UserController {
    @Autowired
    private UserService userService;
     @RequestMapping("/user")
    public PageVo lists() {
        return userService.selectUser();
    }

}
